added validation script to user.rb, figured out slight js error :D)