added event listener that automatically encodes password any time it's changed or a user is created