adding some form validations