JSON API for checking if an username is available