added saved user data storage and changed the user model to a singleton class