changing the form errors for register and login