refactor(auth): return boolean from isValid