Properly handling recent attempts

when the user is not logged in.

Fixes #171.
Merge pull request #173 from egor83/master

#171 - Properly handling recent attempts when the user is not logged in.