Update code login and changePassword