backup of old method of storing user information in session instead of devise