createCollection if user logged in else create collection locally