Cosmetics
fixed the check_register function
fixed the check_register function