added new functionality

working with sessions to track userlogins