Only one entry is allowed error when submitting form