Added scope for loggedIn