style changes and error checking for checkbox