Remove PHP Warnings from worker page

* Added HTML5 required flags for username/passwords
* Added empty string check in addWorker method

Fixes #347