Fix PHP Warnings on Password Reset page

* Added HTML5 required to username field
* Added empty string check to resetPassword method

Fixes #348