build check to know if a user is anonymous or not