There are only register and login methods in web api.
So there's no checking method to validate is registration possible.

To check that user can log in we need to send request for register with all data and then check the response code of web server. If it is okay then we can login user.