1. added validation for update() method. adding errors by json in the following format: {... errors: {field1="..", field2="..", field3="" } }