fix admin can get to login page