Pass `req` as well as `res` to error rendering method
Only show backend navbar when user is logged in