Update user.rb

fix new user creation issue