Fixed form resubmission issues in settings.

Success or failure messages are not displayed.