Fix login sessions not working properly