Removes checking of user credentials from sessions_controller and places in helper method