added the checkFormOwnership function to forms.php. It checks the ownership of every entry in the form
and finds the groups that the creator of the entry belonged to