It is better to use logger compared to raise exceptions

If user not exist or password is invalid, etc. logger the error instead to do raise exception.