Failed attempts being recorded

Failed attempts are now being recorded in the database