replace user.setKeytag with user.save