login/logout problem fixed