Changed LoginManager and Authenticated State to enable user dependent settings or patien view