added logout, fixed bad_login path, fixed delete event path