Adding controller for error messages and modified routes