Corrected bug in changing passwd