Added form validation and a small fix to the response model.