Changed form logic for display of checkbox