added e2e tests, readme, moved some of the auth logic to login ctrl