adding menu validation