Update error messages in worker.js and begin definition of login views