Added Offline Login Functionality