integration: adds login function and tests
integration: returning token on login function