fixing syntax error in sessions controller