Error Message on Password Protect

Hi, is there any way I can display an error message saying "Invalid Password" if someone enters a wrong password on the page I'm trying to protect ? Right now it just refreshes without any error message.