integrating registration api with registration form