Fixed API url, added form submit action