Added logged in / logged out contexts and relative methods