WebUI.authenticate method fails even though page loads

Have a look at this guide

and please provide us more information: screenshots, code, log.