Added checkPassword function to functions.js, updated adduser.php and edituser.php forms.