Fixed session management, login, logout functinalities