Fix bug on options.php

fixed the bug where the submit button becomes active for a second even
if the API key is invalid.