fix wrong validation in add measures form

Change-Id: Ie4f6b6a03f12da12adb05651108c36b1edd65ae8