Sending form information to an external API