Fix bug `id` and `pw` are not cleared on login fail

If user failed to login once, user can't login even if the inputs are correct. Passing 'off' as id won't work, too.