re-enable buttons after getting the same error message from the server

If I try to log in and receive the "invalid username or password" error, then try to log in again but receive the same error message, the submit button does not get re-enabled in my browser.

Maybe there's a better way to fix this issue, but this seemed to work for me in testing locally.