validation applied in iphone doctor view