Safari detail route condition added if no records are found for the id, the logout route is triggered