Added state options requireDataLoaded, fixed some autologin issues