Add error handling to forms

- set valid and invalid states on form fields
- add error message below form fields