added spec/models/user_spec.rb