Fix login bug in sessions controller.