updated get message code for valdiator widget