bugfix for non-logged in redirect