implemented cookie authentication