adding form validation
WIP