dealing with password changes and encoding