user detials stored in preferences