Servlet to handle login process doesn't redirect, shows blank page

Hello, I am building a servlet which handles the login process after the user clicks the submit button on the previous HTML form. The servlet should get the data entered from the form then perform an SQL statement to select all the data in the registered users table. Once all the data is collected the data from the login form data is validated by comparing it to the data heldin the database. If the comparison fails the user is shown the register.html page to create an account whereas if the comparison produces an exact match the user is shown the home.html page. Now, the trouble I am having is with the comparison part using an if else statement because when I run the servlet by entering a entering incorrect username and passwoed values I am presented with a blank page and the address bar tells me this is on the processlogin servlet so it isn't redirecting me anywhere.