What happens if submit_type is neither of those? Should we just send the AJAX too?