fixed typo in helpers, added csrf token update on logout
fixed typo in helpers, added csrf token update on logout