Adding username filter in filter class

To fix the bug of usernames with hyphen, a username filter is created.
Incorrect use of filter in task.process.php was fixed.
Register.process.php is aligned with the new change. Other files
concerning with username have functioning AJAX auto matching, which are
not changed.