Hi Sudha,
In your insert method, you created a new object of class UserRegistrationForm method using
Then you are calling a method on the userForm object
But, you haven't populated the userForm object yet, so your userForm.getEmail() will throw a null pointer exception. Hence, you are getting the Exception.
So, you need to populate the userForm object before calling any method on it.
Hope this helps
.