Create function for report submission