created function is_password_match
fixed conflict, merge issue#5 & issue#10 to dev_1.0