Moved login/logout to the user module.