Week 6 update login attempt query