Added validation for username.