add custom email validator to app/validators. configure user.rb to include and use validator