authentication with id or name