Fixed validation error message displaying in form

Now the error message is displayed next to the property form field when use assert<ConstrainName> method for validation
Removed deprecated method call.