refactoring validation in User.rb