Fixing issues with security when related to submitting an activity.