Added better error messaging to the register page