Add validation and class_name to user.rb model