Check if the user has a valid username

Ensure that the user does not have invalid characters in the applied username. For example: @,|,#,<>

Edited by Magnus Lutro Allison