checking validations