Fix #437 #435

Also, this is one of those things that would be better in AJAX so that the user can be informed about this before the form is actually submitted.