add api endpoint for validate_tennant