User validation when registering an account.