adding the user session code.
working on the user session code, this is towards #6 resolution