Added API call for registration