This isn't really a supported feature. A simple outline of what you would have to do is have a function that queries the username to check if it is valid or not and call this on the focusout event. Then if the name is taken display the error message.