validating attributes