switches to /v1/login