refactor: refactored out the error on job page