adds redirect to profile.html for non-logged in users