Add attempts mechanism and user history