set message in Validate using Message class.