form validation fixed

for checkbox and/or text inputs