Better the auth logic.