Fixed login and session