Adds User factory method.