Added support for determine if user is logged in when he tries to add content