Incomplete values error is shown when submitting the form