Small bug fixes for the authentication pieces.