Why does my form not always work on mobile devices?