user.rb validations to newer syntax