Fix overflow issue for validation message