added validation for attributes tag