check maximum username length in mongodb format