Unused arguments ok.. I'll delete them.

I deleted it  because of web api works little differently than it was in code.

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.