Update users_helper.rb

put that code in the sessions helper