How can I generate a unique number (for example registration number) for each of the form entry.