working on setting session properly