Fixing usages of formatErrors functions in models.
Fixed addMark method in case it was not getting POST data directly.