* Refactored code
* Store login password in preference
* Store failed login in file