updated loggedIn and vendor stuff