login hooked up with loginView
Added login logic, updated session to call the client