refactor user validations
remove whitespace