Add person - Adding nullcheck for input values.
Add event - Adding nullchecks to prevent errors.