Finally got the values of the checkboxes.