removed test code
removed trailing / for api url
added some e2e tests for login view