def get_home(cls):
        """
         Get and validate home directory from env variable

         Returns
         -------
         home: Path obj
            validated user home path string
        """
        try:
            if Path.home().startswith('/home/'):
                str_path = Path.home()
                return str_path
            else:
                raise Exception('Invalid $HOME env variable detected')
        except ValueError as err:
            logger.error('Invalid $HOME env variable detected')
            return False

         Get and validate home directory from env variable

         Returns
         -------
         home: Path obj
            validated user home path string
        
crackq/validator.py