fixed validation error in main template