fix login/logout function