Added console logs to see if the submit is working