Changing logout procedure