Improve error handling on registration form.