put directive to use on register page. Validates username.