Fix prompt printed twice

The prompt was being printed twice if no token
was entered.