Fixes appearance of login/logout as required