added cleanFormData method to avoid sending objects in the session in c2

thanks to xtra