Or add a general error above the form. Now an error-page will be shown which isn't clear for the user.