Report correct error when login fails
Return empty list of devices, rather than null