Adding functionality to log in, base request object, and tests.