Added login status listeners, still not working correctly.