Convert Form Values into array with desired format