Small changes to register and login.