changes for api of user registration