Adding an error message to Password Protect? "Invalid password," etc.

Is there a way to have an error message appear when an incorrect password is entered? "Invalid Password" or anything? Right now, it just refreshes itself to empty fields.