add form validation and error styles