added error message for validation