use of shared preference for user creds