Fix issue with login

Now using jsoup to parse input form parameters.
Bump version to 3.1.6