moved base functions to a object within the app, wired up the user login