I have created a CustomForm by inheriting the UserCreationForm for user registration as follows (code reference):
CustomForm
UserCreationForm
class CustomForm(U