removed logging messages and fixed cookie path
refactoring handler code and handler class to broaden functonality