Java - JSP - Login

Creating a login jsp webpage in java.

Page

<%-- 
    Document   : login
    Created on : Oct 21, 2014, 10:50:32 AM
    Author     : Steven Bartsch
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="style.css"/>
        <title>Login</title>
    </head>
    <body>
        <% 
            boolean isRegister;
            boolean incorrectCredentials;

            isRegister = Boolean.parseBoolean(session.getAttribute("isRegister").toString());
            incorrectCredentials = Boolean.parseBoolean(session.getAttribute("incorrectCredentials").toString());
        %>
        <div id="home">
            <div id="header">
                <div class="logo"><img src="images/bone_logo.png"/></div>
            </div>

            <%
                if(isRegister)
                    out.print("<div class=\"message registration\">Registration Successful. You may now log in.</div>");
                if(incorrectCredentials)
                    out.print("<div class=\"message credentials\">" + session.getAttribute("loginWarning") + "</div>");

                //reset booleans
                session.setAttribute("isRegister","false");
                session.setAttribute("incorrectCredentials","false");
            %>

            <form method="post" action="login">
                <input type="text" name="username" placeholder="username"/>
                <input type="password" name="password" placeholder="password"/>
                <button class="login">Login</button>
            </form>
            <a href="register.jsp"><button class="register">Register</button></a>
        </div>
    </body>
</html>