update logic login