In macOS recovery terminal -> Enter resetpassword and hit enter and type yes and enter reset password screen.