enabled sessions, added half-working user login checking, enabled logout