Updated error view to extend layout-preauth instead of standard layout as this included secure navigation menu which will rendered even when user is not logged in.