Feature #4150 : user connection attempts before blocking user account
- refactoring some code
- adding user connection attempt verifier
- saving the last date of successful user connection