Login, logout implemented, complete with cookie session.