Form with multiple conditions is getting freeze and crashing.