logout button appears after registering