update logout procedure