Merge pull request #1 from threatagent/develop

Improve authentication