app code for user_spec.rb