Below is my code, I added a conditional alreadySet method to ensure that the updateLogin only happens once, however the react component keeps calling updateLogin, is there s