Fixed issue with missing layout when redirected to login