Added method to check password against pam