email to lower case and successful login resets incorrect login attempts
fixes OpenSourceFieldlinguistics/FieldDB#1369 and OpenSourceFieldlinguistics/FieldDB#1370
only augmenting the count of emails sent if they are actually sent for OpenSourceFieldlinguistics/FieldDB#1340
for OpenSourceFieldlinguistics/FieldDB#1340 giving users 5 chances to enter the wrong temp password