checked and type values not working