basic validate input and checkbox enable/disable