Fix getting data from form inputs.