now fields get updated before login is called