Update frontend to successfully post form to api