adding form validations