Here `wrongpw` isn't assigned to the template. This gives the `Undefined index: wrongpw in /owncloud/calendar/templates/authenticate.php on line 2` error.