Go to Settings>Fingerprint, face and password (Face and password) (Fingerprints and passwords) (Security) > turn on/off Make pattern visible(Display the pattern track) to display or hide the pattern track.
Please don`t worry. Go to Settings > (More settings) > (Security & Privacy > Other security settings) Security > Clear credentials, touch Clear credentials, then try again.