Added form validation

Validation added