[api2, group] Check whether username is valid