Updating model before configuring login