completed the login page, fixed logout errors when auth token is blank