fixed bugs with authentication

fixed a bug where it would think that a successful parse was
unsuccessful :\