adding CheckUsername function