Separated the register and login page because it will be easier to handle error checking later. Also the error display message is a bit better now. Try not filling out everything and input the wrong password when confirming the password.