adding platform validation on submit