Managed to implement the update & create_if_doesnt_exists logic to the edit_user.php part with the dynamic details.