Custom field validation & error messages

Please check if this helps.