1498 | Subhas/Faris | Fixed offline login functionality by saving user details in preferences
1498 | Subhas/Faris | Clear cookies on logout