Added another check for desktop login