Added validations for username and login_hash