add userid validation