Fix the regexes for usernames and email addresses to be JS compat

Should be compat with javascript. Javascript does not support (?i) like .net, so these regex validations fail to load. Fixes #452.