adding form validation
Merge pull request #4 from leaena/validation

adding form validation