logout, login required fixed