change registertool to inject spring security file directly