update to the user_codes.php