device form validation improvements