Add error type to validationError object

- Add error type to errors object in validationError object in order to know which validation type failed.