Form not functioning correctly on Ipad