Error on javascript check box validation for admin panel