It's easy to forget the password on your Galaxy S5. Many solutions require a hard factory reset to reset the password, which would delete all the files on the smartphone. Here is an easy way to reset the password without losing any data.
Workable with other Samsung Galaxy Phones:
Galaxy Note3, Galaxy Note4, Galaxy Note Edge, Galaxy Note5, Galaxy Note II;
Galaxy S3, Galaxy S4, Galaxy S4 Active, Galaxy S4 Mini, Galaxy S4 LET-A, Galaxy S5 Duos