Began work on login flow js functions (login, logout, and findMatch)