Fix bug `id` and `pw` are not cleared on 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.