Make form validation work on account settings and registration page.