Adjust setup for login spec

We need to check `#success?` before parsing the response.