logout through backend