add form validation