Resolve issue of wrong password attemp count