Fixed bug in the user sessions controller