Update password.php

Semicolons instead of colons in  switch statement.
Merge pull request #226 from xzaara/patch-2

Fix error handling