log in working with ldap-json-api server with angularjs templating