Update user.rb and authentication_pages_spec.rb file