implement logout and configurable logout url