Fixing PHP Warning on resetting failed login count

Addresses #330 and further cleans PHP Log