removed singleton, added user to sharedpreferences