Change errors() to getErrors()