bugfix: logout function

It's a very simple bug, which prevents the user from logging out. Adding the correct name attribute fixes it.