added validation to plotObservationsModal