simplify popup check of auth