fixed site crash when logging out on edit account page