<%@ page import="java.util.*" %>
<!-- Authors: Jason Fillo and Peter Deschere -->

<html>
 <head>
  <title>Bulletin Board - Powered by $Money</title>
 </head>

 <body>
  <center>
    <h3>Login</h3>
    <form method="post" action="Login.do">
    <input type="hidden" name="ActionToTake" value="Login"/>
	<table>
	<tr>
	  <td>Login Name</td>
	  <td><input type="text" name="username"></td>
	</tr>
	<tr>
	  <td>Password</td>	
	  <td><input type="password" name="password"></td>
	</tr>
	<tr>
	  <td colspan=2 align=center>
		<input type="submit" value="Login"/>
	  </td>
	</tr>
	</table>
    </form>
    
    <br />
    <br />
    <br />
    
    <h3>Create new account</h3>
     <%
	String errornew = (String)request.getAttribute("errornew");
	if(errornew != null) {
		out.print("<h4>");
		out.print(errornew);
		out.print("</h4><br />");
		}
	 %>
    <form method="post" action="NewUser.do">
 	<table>
	<tr>
	  <td>Login Name</td>
	  <td><input type="text" name="newname"></td>
	</tr>
	<tr>
	  <td>Password</td>	
	  <td><input type="password" name="password"></td>
	</tr>
	<tr>
	  <td>Confirm Password</td>	
	  <td><input type="password" name="cpassword"></td>
	</tr>
	<tr>
	  <td colspan=2 align=center>
		<input type="submit" value="Create New"/>
	  </td>
	</tr>
	</table>
    </form>
    
  </center>
  
  <h4>Hibernate and You ... our experience</h4>
  <a href="HibernateAndYou.html">Short write-up</a>
 </body>
</html>