resolved a couple bugs I discovered while testing. Took out obsolete code from auth library.