Fix layout renders when not logged in