Refactor user name validations [Finishes #49261823]