flash error message for validation of contacts