Fixed the server code to allow report submission from the web app