Update authenticate.php

Fix 'Undefined index: wrongpw' error
Merge pull request #3947 from runky/patch-1

* runky/patch-1:
  Update authenticate.php