Custom error messages added for validation of form