Modified the errors in boolean and checked. Its working fine.