Fixed a bug where closing the app reset the failed attempts counter.
Improved failed attempts logic: it now doesn’t reset unless when password is entered successfully, or app is killed.
Removed deprecated methods.