Removed some checks to see if user is logged in and replaced them with @login_required decorator.