fixed bug where loginFailedCount was uninitialized