Fix login not switching to login view