Adding getErrors() method to validation and adding jsonSuccess to application