anchor.diff:  				db.closeConnection();
   				response.setHeader("Refresh", "5; URL=index.jsp");
   				}
  -		}
  -		out.print("Registration Failed! That username is already in use! You will be redirected in 5 seconds...");
  +		}else{
  +		out.print("Registration Failed! That username or email address is already in use! You will be redirected in 5 seconds...");
   		db.closeConnection();
  -		response.setHeader("Refresh", "5; URL=index.jsp");
  +		response.setHeader("Refresh", "5; URL=index.jsp");}
   	%>
   </body>
   </html>
  
positive.code: 		//Create the adapter
  		SQLAdapter db = new SQLAdapter();//Create a new instance of the SQL Adapter to use 
  		
  		//Setup the prepared statement to check if the email is in use
  				PreparedStatement checkEmail = db
  						.prepareStatement("SELECT * FROM persons where email = ?");
  				checkEmail.setString(1, email);
  				ResultSet rset = db.executeQuery(checkEmail);
  				boolean empty = true;
  				if (rset.next()) {
  
negative.code: 				}
  				rset.close();
  				
  		//If the email and username are not in use		
  		if (empty == true){
  			
  			//Some variables for counting the rows updated
  