Added custom messages for validation errors.