Work on rest api for registration.