fix bugs for register account and delete account