Replaces anonymous check with the preferred is_authenticated