fix login after update-profile