Logging the password validation method