get session to check login, add product to database from home