added custom messages support for validation