Completed the change password funtion.