Make a User model with password.--modified by me,some places is different from the author's version , his version didn't pass , but my version did.