Your error handler says 'Wrong Password' for any error.
You need to make sure that it really is the password that is incorrect. Put a breakpoint on the code and step through it.
Also, unless you have different passwords for each sheet you need to put the inputboxes in HideUnhide(), otherwise it will pop up for every sheet.