Fixing a bug while the form is send with an empty code.