Fixed small error in user.rb
Fixed another small error in user.rb
Fixed one more issue with user.rb