detail
login fail detection, fixed logging