Fix toggleView on login page