Better error handling for register and login.