add directive to check that username is available and valid