finished user registration by api