validate measure id passed on server side

Change-Id: I45a767102bd569f719c1ba11b87b6d5e4b570cde