Change registering  order to check sending confirm email before insert new user data.