Check account name validity on register

Issue #118 resolved
Christophe de Vienne
created an issue

A register request can set the account name to anything, including an empty string. Some verification should be added and refuse empty string or any character outside [a-zA-Z0-9-_].