Create function is_password_match
fix conflict, merge issue#5 & issue#10