Updated to use device and default to login page.