Properly handling recent attempts

when the user is not logged in.

Fixes #171.