regAsync should return the same data structure as loginAsync
Reject when error not equal 0