Created user submission function.