Working through custom authentication issues