A smart way to do validations!