add validation in subsribe