refactoring, implemented forgot pw reset
refactoring, implemented forgot pw reset