add validations

Yes. If we create a class we can resue wherever required