Inserted validity checks for robot creation