alert for validation