adding register user API