made changes to sessions_controller