Small bug fixes for the authentication pieces.
Merge pull request #1 from dude051/master

Small bug fixes for the authentication pieces.