added params to register user