changed interface to check if user has token