Added alert for validation errors