Check form values before inserting new data, reset selection