added form field and rest client for api