added to_lower method for validation