Fix for password validation on editing settings