made admin template safe when current user is nil