validation message working