Update CreateAForm.rst

Fixed code issues