doing html validations