Use username and ip to record login attempts