Fixed invocations to loggedUser (now its a model)