removing some undefined index PHP errors