saving information about user in shared preferences