save profile, login() updated