Submit API connected to back end