validation check added