Fix auto-login after logout