Added cata function for validation