Getting a warning message that only one entry is allowed when submitting the form