fix authentication issues and spending points bug