finally got user login device setting flow working properly