fix AuthController logic error