Offline login functionality