Fix PHP Warnings on Password Reset page

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

Fixes #348
Merge pull request #350 from TheSerapher/issue-348

Fix PHP Warnings on Password Reset page