Sessions for users. A little code cleanup