Saving data in database + login model update